﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UMC.Wiki.Entities
{


    public partial class SubjectContent : UMC.Data.Record
    {

        public ulong? Id
        {
            get;
            set;
        }
        public string ContentType
        {
            get;
            set;
        }
        public string Content
        {
            get;
            set;
        }
        public string DataJSON
        {
            get;
            set;
        }
    }

    /// <summary>
    /// 主题
    /// </summary>
    public partial class Subject : UMC.Data.Record
    {
        public string Code
        {
            get; set;
        }
        public ulong? Id
        {
            get;
            set;
        }
        public string Title
        {
            get;
            set;
        }
        /// <summary>
        /// 展示次数
        /// </summary>
        public int? Look
        {
            get;
            set;
        }
        /// <summary>
        /// 回复数据
        /// </summary>
        public int? Reply
        {
            get;
            set;
        }
        public int? Status
        {
            get;
            set;
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastDate
        {
            get;
            set;
        }
        /// <summary>
        /// 发布日期
        /// </summary>
        public DateTime? ReleaseTime
        {
            get;
            set;
        }
        /// <summary>
        /// 举报次数
        /// </summary>
        public int? TipOffs
        {
            get; set;
        }
        /// <summary>
        /// 发布日期
        /// </summary>
        public uint? PublishTime
        {
            get;
            set;
        }
        /// <summary>
        /// 来源URL
        /// </summary>
        public string Url
        {
            get;
            set;
        }
        /// <summary>
        /// 赞数
        /// </summary>
        public int? Favs
        {
            get;
            set;
        }
        /// <summary>
        /// 所属文集
        /// </summary>
        public ulong? portfolio_id
        {
            get; set;
        }
        /// <summary>
        /// 所属栏目 
        /// </summary>
        public ulong? project_item_id { get; set; }
        /// <summary>
        /// 所属项目
        /// </summary>
        public ulong? project_id { get; set; }


        public Guid? user_id
        {
            get;
            set;
        }
        public string Poster
        {
            get;
            set;
        }

        public bool? IsPicture
        {
            get;
            set;
        }

        public int? Seq
        {
            get;
            set;
        }

        /// <summary>
        /// 摘要
        /// </summary>
        public string Description
        {
            get;
            set;
        }
        /// <summary>
        /// 是否可以评论
        /// </summary>
        public bool? IsComment
        {
            get; set;
        }

        public int? Score
        {
            get; set;
        }
        public DateTime? CreationTime { get; set; }
        /// <summary>
        /// 最后修改人ID
        /// </summary>
        public Guid? last_user_id
        {
            get; set;
        }
        /// <summary>
        /// 最近评论
        /// </summary>
        public ulong? last_command_id
        {
            get; set;
        }
        /// <summary>
        /// 发面后可见性
        /// </summary>
        public int? Visible
        {
            get; set;
        }

        public String Keywords
        {
            get; set;
        }

        public int? ImageIndexs
        {
            get; set;
        }
    }

    /// <summary>
    /// 举报
    /// </summary>
    public partial class SubjectTipOff : UMC.Data.Record
    {
        public ulong? sub_id
        {
            get;
            set;
        }

        public DateTime? CreationTime { get; set; }

        public Guid? user_id { get; set; }
        /// <summary>
        /// 举报内容
        /// </summary>
        public string Description
        {
            get;
            set;
        }
        /// <summary>
        /// 举报类型
        /// </summary>
        public string Type
        {
            get;
            set;
        }
        public string Url
        {
            get; set;
        }
    }
    /// <summary>
    /// 黑名单
    /// </summary>
    public partial class ProjectBlock : UMC.Data.Record
    {
        public ulong? ref_id { get; set; }
        public int? Type { get; set; }
        public Guid? user_id { get; set; }
    }

    public partial class ProjectItem : UMC.Data.Record
    {

        public ulong? Id
        {
            get;
            set;
        }
        public string Caption
        {
            get;
            set;
        }
        public string Description
        {
            get;
            set;
        }
        public Guid? user_id
        {
            get;
            set;
        }
        public int? Sequence { get; set; }
        public DateTime? CreationTime { get; set; }
        public ulong? project_id { get; set; }
        public string Code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool? Hide { get; set; }
        public uint? PublishTime
        {
            get;
            set;
        }
        public int? SubjectTotal
        {
            get; set;
        }
        public String Keywords
        {
            get; set;
        }
    }

    public partial class Project : UMC.Data.Record
    {

        public ulong? Id
        {
            get;
            set;
        }
        public string Caption
        {
            get;
            set;
        }
        public string Description
        {
            get;
            set;
        }
        public string Code
        {
            get;
            set;
        }
        public Guid? user_id
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Sequence { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? CreationTime { get; set; }

        public uint? PublishTime
        {
            get;
            set;
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifiedTime
        {
            get; set;
        }
        public int? SubjectTotal
        {
            get; set;
        }
        public int? MemberTotal
        {
            get; set;
        }
        public int? ReplyTotal
        {
            get; set;
        }
        public int? ViewTotal
        {
            get; set;
        }
        public Guid? AppKey
        {
            get; set;
        }
        public String Keywords
        {
            get; set;
        }
        public uint? ExpireTime
        {
            get; set;
        }
        public int? FollowPrice
        {
            get; set;
        }
        public int? ReaderPrice
        {
            get; set;
        }
        public int? TrialDays
        {
            get; set;
        }
        public string Tel
        {
            get; set;
        }

        public int? Status
        {
            get; set;
        }
        public int? ReaderTotal
        {
            get; set;
        }

    }

    public partial class ProjectMember : UMC.Data.Record
    {
        public Guid? user_id
        {
            get;
            set;
        }
        public ulong? project_id { get; set; }
        public DateTime? CreationTime { get; set; }
        public Web.WebAuthType? AuthType { get; set; }
        public string Alias { get; set; }
        public uint? ExpireTime
        {
            get; set;
        }



    }
    public enum DynamicType
    {
        Subject = 0,
        Member = 1,
        Project = 2,
        ProjectItem = 3,
        Portfolio = 4
    }
    public partial class ProjectDynamic : UMC.Data.Record
    {
        public Guid? user_id
        {
            get;
            set;
        }
        public string Alias { get; set; }
        public ulong? project_id { get; set; }
        public uint? Time { get; set; }
        public DynamicType? Type { get; set; }
        public ulong? refer_id { get; set; }
        public string Title { get; set; }
        public string Explain { get; set; }

    }


    public partial class ProjectAccess : UMC.Data.Record
    {
        public ulong? sub_id
        {
            get; set;
        }
        public Guid? user_id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime? LastAccessTime
        {
            get; set;
        }
        public int? Times
        {
            get; set;
        }
        public DateTime? CreationTime
        {
            get; set;
        }
        public string Alias { get; set; }

    }

}
